package com.toby.ioc.instance;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @desc:
 * @author: jonathan.zhang
 * @date: 2019/7/13 1:58
 */
public class InstanceB {

    @Autowired
    private InstanceA a;

    public void say(){
        System.out.println("B say");
    }

    public void sayA(){
        a.say();
    }
}
